<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onLoad() {
			console.log('App onLoad')
		},
		onShow: function() {
			console.log("userId", uni.getStorageSync('userId'))
			if (!uni.getStorageSync('userId')) {
				uni.showModal({
					title: '未登录',
					content: '立即登录享海量陪玩',
					confirmText: '登录',
					success(res) {
						if (res.confirm) {
							uni.navigateTo({
								url: '/pages/public/login'
							})
						}
					}
				})
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #111224 !important;
		color: #FFFFFF;
	}

	.bg {
		background-color: #1E1F31;
	}

	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import 'components/colorui/main.css';
	@import 'components/colorui/icon.css';
</style>
